package hy.dao;

import hy.beans.Perms;
import hy.beans.Role;
import hy.beans.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {
    void insert(User u);
    User selectUser(String username);
    List<Role> selectRolesByUserName(String username);
    List<Perms> selectPermsByRoleId(Integer id);
}